@(myform: Form[Application.Register])

@import helper._
@import helper.twitterBootstrap._


<head>
 <link rel="stylesheet" type="text/css" media="screen" href="@routes.Assets.at("stylesheets/signin.css")">
</head>

        @helper.form(routes.Application.registerNew, 'class -> "form-signin") {
            
           <h3 class="form-signin-heading">注册新用户</h3>
                        
            @if(myform.hasGlobalErrors) { 
                <p class="error">
                    @myform.globalError.message
                </p>
            }
            
            @if(flash.contains("success")) {
                <p class="success">
                    @flash.get("success")
                </p>
            }

            @helper.input(myform("name"), '_label->"") { (id, name, value, args) =>
                    <input type="text" class="form-control" name="@name" value="@value" placeholder="用户名" id="@id" required="" @toHtmlArgs(args)>
                } 
            
             @helper.input(myform("password"), '_label->"") { (id, name, value, args) =>
                    <input type="password" class="form-control" name="@name" value="@value" placeholder="密码" id="@id" required="" @toHtmlArgs(args)>
                }
                
            @helper.input(myform("password"), '_label->"") { (id, name, value, args) =>
                    <input type="password" class="form-control" name="@name" value="@value" placeholder="再次输入密码" id="@id" required="" @toHtmlArgs(args)>
                }
            

             <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
            
        }


